//package jkgl.ai;
//
//import com.alibaba.dashscope.exception.InputRequiredException;
//import com.alibaba.dashscope.exception.NoApiKeyException;
//import jkgl.ai.service.ChatService;
//import lombok.RequiredArgsConstructor;
//import org.apache.commons.lang3.StringUtils;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//
//
//@RestController
//@RequiredArgsConstructor
//public class ChatController {
//
//    @Resource
//    private  ChatService chatService;
//
//    @GetMapping("message")
//    public String message(String message) throws NoApiKeyException, InputRequiredException {
//        if(StringUtils.isNotEmpty(message)){
//            chatService.chatWithTest(message);
//        }
//        return null;
//    }
//}
